home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Resource for Source: C/C++
/
Resource for Source - C-C++.iso
/
codelib7
/
v_09_02
/
9n02031a
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1995-11-01
|
356 b
|
16 lines
int
TreeSearch( int NodeNumb, int Value )
{
while( NodeNumb != -1 && Value
!= Tree[NodeNumb].Data )
{
if( Value < Tree[NodeNumb].Data )
NodeNumb = Tree[NodeNumb].Left;
else
NodeNumb = Tree[NodeNumb].Right;
}
}